package com.grasp.util;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

public class IntentUtil {

	public static void startActivity(Context mContext, Class<?> cls) {
		Intent intent = new Intent(mContext, cls);
		mContext.startActivity(intent);
	}

	public static void startActivityResult(Context mContext, Class<?> cls,
			int result) {
		Intent intent = new Intent(mContext, cls);
		((Activity) mContext).startActivityForResult(intent, result);
	}

	public static void startActivity(Context mContext, Class<?> cls,
			Bundle mBundle) {
		Intent intent = new Intent(mContext, cls);
		intent.putExtras(mBundle);
		mContext.startActivity(intent);
	}

}
